#!/bin/sh

APP_NAME="bin/@PROJECT_NAME@"

current_path=$(cd $(dirname $0) && pwd )
#echo $current_path

if [ -f $current_path/$APP_NAME ];then
    #echo "文件存在"
    chmod -R 777 /$current_path/$APP_NAME
    export LD_LIBRARY_PATH=$current_path/lib:$LD_LIBRARY_PATH
    /$current_path/$APP_NAME -v
else
    #echo "文件不存在"
    echo $current_path"/"$APP_NAME" not found !"
fi
